<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Textbox
 *
 * @author chaporgin_a
 */
class VA_Form_ViewHelper_XHTML_Textbox extends VA_Form_ViewHelper {
  public function wrap(){
    $this->getElement()->setHTMLTagAttribute('type', 'text', TRUE);
    return sprintf('<input %s value="%s" />'
            , $this->getElement()->getAllAttributesAsHTML()
            , $this->getValueOfElement()
            );
  }
}

